home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1263 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.5 KB

  1. Date: Sat, 9 Apr 94 18:26:41 PDT
  2. From: brad@tazboy.Jpl.Nasa.Gov (Brad Pickering)
  3. Message-Id: <9404100126.AA00732@tazboy.JPL.NASA.GOV>
  4. To: mint@atari.archive.umich.edu
  5. Subject: external device drivers
  6.  
  7. I am trying to write an external device driver for the
  8. Mac port of MiNT, but I am unclear on the use of wake
  9. and sleep (among other things).  I would like to have
  10. a device that other Mac applications can send data
  11. to and have the device pass that data on to a mint
  12. program when it is read.  My first question is: does
  13. this device have to be a TTY device?  I thought the
  14. answer was yes, because the kernel had built in support
  15. for putting a process to sleep if it tried to read a TTY
  16. device with no data available, but now I'm not sure.  When
  17. I thought the kernel would automatically put a process to
  18. sleep I though that the only sleep/wake call I would need
  19. was a call to wakeselect in the routine that is called when
  20. data arrives from another Mac application.  Now I am thinking
  21. that I might need to call sleep in the read routine, but I don't
  22. know which queue or condition to sleep on.  I also don't know
  23. if I need to change the wake call in the data ready routine
  24. depending on whether I am sleeping because of a select call
  25. or a read call.
  26.  
  27. If anybody has any ideas on this, or some source code, or some
  28. pointers to documentation, I would like to hear about it.  I
  29. have read parts of the modem driver and the raw disk driver
  30. on atari.archive but this stuff still doesn't quite make sense
  31. to me.
  32.  
  33. Thanks,
  34.   Brad
  35.